Creating Media through api casts sql error "string of binary data would be truncated..." Help
Hey
Im doing a "small" app that uploades images to umbraco v4.7.2 through the api. The reason im doing it is because it needs to read out meta data and add it as properties, and it works brillantly. but after a few gb of data it just hits an sql error.
String or binary data would be truncated. The statement has been terminated.
This is normally an error thrown when something is not fitting inside the row like if you put in 300 char long varible into a varchar(250) or something like that.
But here it just stops at a random 10mb image with nothing out of the ordinary.
I hope you can help. Ive provided an image at what line its failing(its a function from the uhelpsy lib but basicly it just creates a media item with its properties.) Ive also provided the stack trace of the fail.
Creating Media through api casts sql error "string of binary data would be truncated..." Help
Hey
Im doing a "small" app that uploades images to umbraco v4.7.2 through the api. The reason im doing it is because it needs to read out meta data and add it as properties, and it works brillantly. but after a few gb of data it just hits an sql error.
String or binary data would be truncated.
The statement has been terminated.
This is normally an error thrown when something is not fitting inside the row like if you put in 300 char long varible into a varchar(250) or something like that.
But here it just stops at a random 10mb image with nothing out of the ordinary.
I hope you can help. Ive provided an image at what line its failing(its a function from the uhelpsy lib but basicly it just creates a media item with its properties.) Ive also provided the stack trace of the fail.
Stacktrace:
is working on a reply...