Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Uploading Photos
Wed, May 21 2014 2:58 PMPermanent Link

Chris Holland

SEC Solutions Ltd.

Avatar

Team Elevate Team Elevate

Does anybody have any sugesstions as to the best way to upload a photo
that I have taken with my EWB application to my web server?

--
Chris Holland
[Team Elevate]
Thu, May 22 2014 3:44 AMPermanent Link

Matthew Jones

Chris Holland wrote:

> Does anybody have any sugesstions as to the best way to upload a
> photo that I have taken with my EWB application to my web server?

I don't "know", but I'd first look at how the upload button works, and
if not that, then perhaps add it as a body on an http PUT or POST to
the server? How would it be done in "plain" javascript? My redirect to
frame showed me that you can "hack" EWB nicely, but that Tim had
already provided the mechanism properly in the framework.


--

Matthew Jones
Fri, May 23 2014 4:11 AMPermanent Link

Chris Holland

SEC Solutions Ltd.

Avatar

Team Elevate Team Elevate

My original thought was to have a Dataset with a blob field and load the
photo data encoded with Base64 stored in that field, but Tim suggested
that this would not be a good idea.

So I thought I would try using the TServerRequest and use a POST to send
the Base64 string to my webserver. When I looked at the EWB code for
sending a Dataset that appeared to be exactly what it was doing so I was
wondering if there was another way that I am not aware of.

Chris Holland
[Team Elevate]

On 22/05/2014 08:44, Matthew Jones wrote:
> Chris Holland wrote:
>
>> Does anybody have any sugesstions as to the best way to upload a
>> photo that I have taken with my EWB application to my web server?
>
> I don't "know", but I'd first look at how the upload button works, and
> if not that, then perhaps add it as a body on an http PUT or POST to
> the server? How would it be done in "plain" javascript? My redirect to
> frame showed me that you can "hack" EWB nicely, but that Tim had
> already provided the mechanism properly in the framework.
>
>
Fri, May 23 2014 7:34 AMPermanent Link

Raul

Team Elevate Team Elevate

On 5/23/2014 4:11 AM, Chris Holland wrote:
> So I thought I would try using the TServerRequest and use a POST to send
> the Base64 string to my webserver. When I looked at the EWB code for
> sending a Dataset that appeared to be exactly what it was doing so I was
> wondering if there was another way that I am not aware of.

ServerRequest and POST is the only way to send data to server from
javascript apps that i know of. Why even bother with the base64 and such
- just POST with binary image as payload and then on server you can
directly save to file

Raul
Image