kohana php, orm mysql blobs
i'm perplexing emanate collect blob mysql list around kohana's orm library.
the formula looks something like:
$attachment = new attachment_model();
$attachment->name = $info['filename'];
$attachment->size = strlen($info['data']);
$attachment->data = $info['data'];
$attachment->mime_type = $info['content-type'];
$attachment->save();
i've accurate information ok during indicate outputting file. however, i collect information comes out corrupted. i've managed slight down bit some-more - i've used mysql query apparatus mislay information reason database i establish information database corrupt, problem contingency insert.
also, files inputted aren't always hurtful - smaller files (such images) tend ok.
anyone have any ideas?
Comments
Post a Comment