Flutter and Cloudinary
Hi,
Im flutter dev. Actually I'm a Cloudinary free user. I update some photos manually and create a folder named "my photos". "https://api.cloudinary.com/v1_1/MYNAME/image/upload/SOMEPHOTO.jpg";
String myUrl = "https://api.cloudinary.com/v1_1/jotadevi/image/upload/psinotes";
Future<List<Resources>> getImages() async {
return await http.get(myUrl).then((response) {
if (response.body != "Some error...") {
Data data = Data.fromJson(json.decode(response.body));
return data.resources;
} else {
// print("any error...");
};});}
Im came across this error:
Exception has occurred.
FormatException (FormatException: Unexpected end of input (at character 1) ^ )
0
-
Solved!!
=)
1 -
Great :)
Can you please share how you solve it? for further customers :)
Thanks,
0 -
Hi.
In fact I decided use CloudinaryClient it’s works perfectly. ;]0 -
Thanks for sharing Jeiel :)
0
Post is closed for comments.
Comments
4 comments