Hi all,

I am developing the mobile application

In that i have used the upload widget, i can able to get the binary data. Indeed i need to get the URL of the uploaded image. 

https://www.outsystems.com/forums/discussion/34673/getting-image-url-from-binary-data/#Post122444

As i approched with Mr.jouch solution

data:image/<format>;base64 . 

It throws the error Invalid URI: The Uri string is too long.

How can i get the url of the uploaded image?

suggestion please !

If you want to give this link so that anyone can download this file then simply create a rest API GET method with one parameter (identifier of the entity with image attribute) & two output parameter as below

  1. One output parameter of binary data type and Sent In set to body
  2. Other parameter of text type with below advance attribute
    • Send In - Header
    • Name in Response - Content-Disposition

In this method you can get image and its name from entity using an aggrigate. 

Assign image attribute value to output parameter of binary data type

In second output parameter set following string (concatinate image name in place of <image.jpg>)

attachment; filename=<image.jpg>

Nikhil Gaur wrote:

If you want to give this link so that anyone can download this file then simply create a rest API GET method with one parameter (identifier of the entity with image attribute) & two output parameter as below

  1. One output parameter of binary data type and Sent In set to body
  2. Other parameter of text type with below advance attribute
    • Send In - Header
    • Name in Response - Content-Disposition

In this method you can get image and its name from entity using an aggrigate. 

Assign image attribute value to output parameter of binary data type

In second output parameter set following string (concatinate image name in place of <image.jpg>)

attachment; filename=<image.jpg>

Hi Nikhil Gaur,

Thankyou for your reply,

I m trying to implement with your method, but i don't  have clarification of below statement.

can u explain clearly?

In second output parameter set following string (concatinate image name in place of <image.jpg>)

attachment; filename=<image.jpg>