jamesmcfly
New Member
Hello,
I am wondering how I can send image to progress database using the rest adapter. Currently I am developing a mobile app for iOS and sending image would be one of the features.
In the database, the images are stored as BLOB, which is not supported by Rest Adapter (CMIIW). The only way I can think of is to send the image as LONGCHAR (using base64EncodedString in iOS) and convert it to BLOB in the server side. It works, but the image would only correctly appear when using iOS devices. If I try to COPY-LOB the image from the database to an image file in computer, the image will not appear, but the size is correct. I believe that the encoding is not compatible.
Does someone has some experience with this situation? I still want to store the image as BLOB in server, but I haven't found the way to send the images from iOS, so that the image can be read on both computer and iOS.
Thank you
I am wondering how I can send image to progress database using the rest adapter. Currently I am developing a mobile app for iOS and sending image would be one of the features.
In the database, the images are stored as BLOB, which is not supported by Rest Adapter (CMIIW). The only way I can think of is to send the image as LONGCHAR (using base64EncodedString in iOS) and convert it to BLOB in the server side. It works, but the image would only correctly appear when using iOS devices. If I try to COPY-LOB the image from the database to an image file in computer, the image will not appear, but the size is correct. I believe that the encoding is not compatible.
Does someone has some experience with this situation? I still want to store the image as BLOB in server, but I haven't found the way to send the images from iOS, so that the image can be read on both computer and iOS.
Thank you