Web Developer
I use C# Appwrite 0.7 package, and I’m on Appwrite 1.14, I try to get a file from a bucket using
var storage = new Storage(client);
File result = await storage.GetFile(
bucketId: "[BUCKET_ID]",
fileId: "[FILE_ID]");
it return the file in result, but I haven’t found the method to show it in picture box, I found some old doc using file.Content, but it doesn’t work anymore.
After this I tried to get a preview using
var storage = new Storage(client);
byte[] result = await storage.GetFilePreview(
bucketId: "[BUCKET_ID]",
fileId: "[FILE_ID]");
but this time, I get result=null, and it’s the same thing for: GetFileView, or GetFileDownload.
Please help, I’m struggling, I would like to use GetFile and GetFilePreview, all the files are jpg images, and under 5mo.
Thanks a lot