Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Binary to Text Encoding format used in Assets HTTP API ?

bsr78033597
Level 2
Level 2

Hi All, may I please know which "Binary-to-text_encoding" format/standard (like Base64, Ascii85 etc.) is used in Assets HTTP API ( /api/assets/ ) GET requests, used to fetch binaries from AEM DAM?

Thanks.

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

1 Accepted Solution
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

For the curl request 

PUT /api/assets/myfolder/myAsset.png -H"Content-Type: image/png" --data-binary @myPicture.png

Each part may be encoded and the "Content-Transfer-Encoding" header supplied if the value of that part does not conform to the default (7BIT) encoding (see [RFC2045], section 6)

Not sure but found at https://www.w3.org/TR/html401/interact/forms.html

View solution in original post

2 Replies
Theo_Pendle
Community Advisor
Community Advisor

Hi @bsr78033597,

I'm not sure what your refereing to. What HTTP request are you using which features binary-to-text encoding?

As a general rule, the payload of a response for a GET on an asset is Gzipped. 

Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

For the curl request 

PUT /api/assets/myfolder/myAsset.png -H"Content-Type: image/png" --data-binary @myPicture.png

Each part may be encoded and the "Content-Transfer-Encoding" header supplied if the value of that part does not conform to the default (7BIT) encoding (see [RFC2045], section 6)

Not sure but found at https://www.w3.org/TR/html401/interact/forms.html

View solution in original post