Hi Chris, Is there any code you can provide regarding your usage of the Blob api?
On May 14, 10:48 pm, Chris <[email protected]> wrote: > Does the Blob api support text files? I am using the example upload > application and it doesn't seem like all of the file is making it to > the server. > > I am trying to read an xml file. > > On the server, I modified the sample code to read the input stream > from the request and then convert the bytes to a string and print on > the console. When I do this, the content length is the correct size; > however the output is only abuot 1/2 of the xml file. Any toughts on > what is going on? > > //read data stream on server and write to log file > InputStream in = req.getInputStream(); > if (in != null) { > byte[] buffer = new byte[65536]; > > int size = 0; > int l; > while ((l = in.read(buffer)) != -1) { > size += l; > System.out.print(new String(buffer)); > } > > in.close(); > System.out.println("Saved " + req.getContentLength() + " > bytes size[" + size + "]");
