Place images byte into String is not working?
Posted
by Proyb2
on Stack Overflow
See other posts from Stack Overflow
or by Proyb2
Published on 2010-05-10T14:53:06Z
Indexed on
2010/05/10
20:14 UTC
Read the original article
Hit count: 289
flex
|actionscript-3
I tried on Flex 3, facing issue with uploading JPG/PNG image, trace readUTFBytes would return correct bytes length but tmpFileContent is trucated, it would only appear to have upload just 3 characters of data to the server through PHP script which made image unusable. I have no issue for non-images format. What is wrong here?
var tmpFileContent:String = fileRef.data.readUTFBytes(fileRef.data.length);
Is String capable of handle bytes?
© Stack Overflow or respective owner