This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Data Reading is not correct #1287
Comments
Use |
I see, If it is an image in what format i will be getting it ? base64 ? |
IPFS does not care about the format of the data, it is returned via |
Thank you, it worked. I am closing this then. |
This was referenced Mar 17, 2020
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Type: Bug
Severity: High
Description:
Data returned by
Ipfs.object.data()
is not the same as the one got from theRead-Only gateway
Steps to reproduce the error:
run
jsipfs daemon
create a node from the existing ports
localIpfs
call
localIpfs.files.add(Buffer.from("TEXT"))
returnsHash
call
localIpfs.object.data(Hash)
returns something like[]*^TEXT
( is the same text but with ascii characters before it and maybe somewhere in the middle)It is bad if i am transferring base64 image data.
The text was updated successfully, but these errors were encountered: