when i upload the image or video in localpath once the media is uploaded exception is came like System.IO.FileNotFoundException: Could not find file issue not recreated our side. how to resolve this issue.
public byte[] GetBase64Stream(string ImagePath)
{
byte[] buffer;
FileStream fileStream = new FileStream(ImagePath, FileMode.Open, FileAccess.Read);
try
{
int length = (int)fileStream.Length;
buffer = new byte[length];
int count;
int sum = 0;
while ((count = fileStream.Read(buffer, sum, length - sum)) > 0)
{
sum += count;
}
}
finally
{
fileStream.Close();
}
return buffer;
}
public async Task<List<string>> UploadMedia(UnsavedMedia unsavedMedia)
{
try
{
byte[] data = DependencyService.Get<ISign>().GetBase64Stream(unsavedMedia.LocalPath);
}
}