I m developing an appl on J2ME + ASP/SQL Server.
I m coding to read the image file (.jpg/.bmp) from phone file system and wants uploading it using HTTPConnection, with .asp page to handle the uploading part furthur.
I m just reading the image file with FileConnection into the chunks of 1024 byte array and writing it through DataOutputStream. In first write I m writing file name i.e. xxx.jpg and "|" seperator. Then I m writing the image byte content chunk in loop.
On server side my asp page handles the part. Asp reads the content requested with POST request method. it gets file name part but it doesn't read the image content byte data. I receive HTTP Content_Length as 0 or -1.
Also I developed 1 servlet that do the same task as asp page. It works fine and also receives each and full data sent.
If anybody can make me out of the problem. In asp page I m not able to read the image content byte data.
It's very urgent as I have already crossed the timeline.