Welcome Guest ( Log In | Register )
|
--
Creedence Clearwater Revival - Platinum (2004) (torrent) has just been added.
--
Unnatural History 1x06 Public School Enemies (torrent) has just been added.
--
Pretty Little Liars 1x08 Please Do Talk About Me When I'm Gone (torrent) has just been added.
|
||
|
This topic is about blob to info hash, the author, Jaggi, wrote about: having a mind freeze at the moment, any remember how to convert a blob field in the db to the info hash format. this has to be done just in phpmyadmin ... To read more just scroll down
![]() ![]() |
Feb 18 2010, 09:14 PM
Post
#1
|
|
![]() Advanced Member
Group: sVIP Received 3 Thanks Posts: 1,053 Joined: 11-August 04 Member No.: 215 ![]() |
having a mind freeze at the moment, any remember how to convert a blob field in the db to the info hash format. this has to be done just in phpmyadmin not via php.
|
|
|
|
Feb 22 2010, 08:13 PM
Post
#2
|
|
Advanced Member
Group: Member Posts: 53 Joined: 3-October 07 Member No.: 27,128 |
Hello,
I don't know if the answer am going to give you is what you're looking for, but it converts a blob field to varchar you run this sql command : ALTER TABLE `Table_name` CHANGE `blob_field_name_old` `blob_field_name_new` BLOB NOT NULL; blob_field_name_new can be equal to blob_field_name_old. Now if you have store the 20-byte infohash in a blob field and you want to convert it back to hex (40-bytes) and store it as varchar I don't know if there is any way to do that with mysql. But it surely can be done with php, but you don't want to use php as you mentioned. |
|
|
|
Apr 19 2010, 11:45 AM
Post
#3
|
|
![]() Advanced Member
Group: sVIP Received 3 Thanks Posts: 1,053 Joined: 11-August 04 Member No.: 215 ![]() |
it was actually down to a issue of my data saving function, i was using HEX() function on the blob field which is the right way to do it but when i was inserting it was getting corrupting making the hash very different to what i was expecting making me think it was wrong. Manage to fixed the issue and HEX() worked fine.
|
|
|
|
![]() ![]() |
|
Lo-Fi Version | SEO by MinervaSEO © Icelabz.net | Time is now: 29th July 2010 - 04:34 PM |