I want the flow to be :
A user uploads an image → It gets stored in a canister → A user can visit a url and see that image.
I do know about cancan but its a bit complicated.
I want the flow to be :
A user uploads an image → It gets stored in a canister → A user can visit a url and see that image.
I do know about cancan but its a bit complicated.
Static images: use “asset” canisters (see the SDK quick start)
User-generated images: chunk image blobs in the client and call custom canister methods with those blobs as arguments (see CanCan’s source)
@jzxchiang Where exactly should i look in cancans code
@kpeacock another dev with the same question on uploading blobs. I think I’ve made my point so I’ll stop @'ing you on stuff now. My apologies again
Check this out: File Storage On IC - #7 by jzxchiang
I just created another example here: GitHub - pattad/imgTank
Hi guys,
I’m running into this - since I would like users of my app to upload images - and a lot of questions of popping up:
Thanks !
yes I’m still using it and its working. However, please check the latest Api documentation of Motoko to check its status.
In the end I simply stored images as a base64 string. It appears to work quite nicely, but I haven’t tried in production yet.
Anyway, thanks for your help