Downloading BLOB

Talk about Image/File fields (uploading, problems etc.)

Moderator: alexandrleonenko

grisu122
Newbie
Newbie
Posts: 4
Joined: Jul 2nd, '11, 09:39

Downloading BLOB

Postby grisu122 » Jul 27th, '12, 05:08

version 7.4.9

Please help me,I can´t downloding BLOB File.

upload is ok

7. Add/Edit/Details Mode Settings:

'file'=>array('header'=>'File','visible'=>'true','type'=>'file','align'=>'left','width'=>'','req_type'=>'sy','maxlength'=>'-1','readonly'=>'false','unique'=>'false','default'=>'',"save_as"=>"blob", 'allow_downloading'=>'true'),


Thank you

administrator
Site Admin
Site Admin
Posts: 6001
Joined: Jan 7th, '09, 23:18
Contact:

Re: Downloading BLOB

Postby administrator » Jul 29th, '12, 11:02


grisu122
Newbie
Newbie
Posts: 4
Joined: Jul 2nd, '11, 09:39

Re: Downloading BLOB

Postby grisu122 » Dec 11th, '12, 08:57

ApPHP DataGrid v7.7.7

Please can you make a sample for me, thx



7. Add/Edit/Details Mode Settings:

'file'=>array('header'=>'File','visible'=>'true','type'=>'file','req_type'=>'st','readonly'=>'false',"save_as"=>"blob","blob_filetype"=>"pdf", "blob_filename"=>"Lageplan", "blob_filesize"=>"20MB",'allow_downloading'=>'false',),
'Titel'=>array('header'=>'Titel','visible'=>'true','type'=>'textbox','align'=>'left','width'=>'','req_type'=>'sy','maxlength'=>'-1','readonly'=>'false','unique'=>'false','default'=>'',),

MYSQL:

1 id int(11) Nein kein(e) AUTO_INCREMENT
2 file longblob BINARY Nein kein(e)
3 Titel varchar(255) latin1_swedish_ci Nein kein(e)


Solved:

'file'=>array('header'=>'File','visible'=>'true','type'=>'file','req_type'=>'st','readonly'=>'false',"save_as"=>"blob", "blob_filetype"=>"blob_type", "blob_filename"=>"blob_name", "blob_filesize"=>"blob_size",'allow_downloading'=>'true',),

'Titel'=>array('header'=>'Titel','visible'=>'true','type'=>'textbox','align'=>'left','width'=>'','req_type'=>'sy','maxlength'=>'-1','readonly'=>'false','unique'=>'false','default'=>'',),

MYSQL:

1 id int(11) Nein kein(e) AUTO_INCREMENT
2 file longblob BINARY Nein kein(e)
3 Titel varchar(255) latin1_swedish_ci Nein kein(e)
4 blob_type varchar(255) latin1_swedish_ci Nein kein(e)
5 blob_name varchar(255) latin1_swedish_ci Nein kein(e)
6 blob_size varchar(255) latin1_swedish_ci Nein kein(e)


Return to “Field type: "image/file"”