jar files from distant server into a Midlet and Checksum | Telit Cinterion IoT Developer Community
November 7, 2016 - 1:49pm, 1813 views
Hello,
How is posible to download *.jar files from a distant server into a Midlet and then make the Checksum?.
The problem is that after the download the *.jar files in the Midlet are unreadable.
[ERROR] Application not authorized to access the restricted API:javax.microedition.io.Connector.file.manufacturer
Is posible to fix this problem and download the file into Midlet to then in this file do a checksum?
Thanks
Hello,
This problem is connected with the extra protection for jar files on the module. For security reasons it is not possible to modify, read, rename or copy the jar file. The intention is to prevent downloading the jar files from the module by an unauthorized person.
To calculate the CRC the file must be read. The workaround for this would be to change the file extension before downloading it to the module and then change the extension again to .jar (which should be possible).
Regards,
Bartłomiej