Welcome Guest ( Log In | Register )

(Today, 03:17 PM)
--
HBO Gasland 2010 (torrent) has just been added.
(Today, 11:07 AM)
--
Psych 5x03 Not Even Close Encounters (torrent) has just been added.
(Today, 01:24 AM) janehon
--
zero 7
(Yesterday, 08:35 PM)
--
Warehouse 13 2x04 Age Before Beauty (torrent) has just been added.
(Yesterday, 08:31 PM)
--
Warehouse 13 2x03 Beyond Our Control (torrent) has just been added.
(Yesterday, 08:27 PM)
--
Warehouse 13 2x02 Mild Mannered (torrent) has just been added.
(Yesterday, 01:14 PM) BladeD
--
...and no rain here.
(Yesterday, 01:00 PM)
--
Warehouse 13 2x01 Time Will Tell (torrent) has just been added.
(Yesterday, 12:54 PM)
--
Memphis Beat 1x06 Run On (torrent) has just been added.
(Yesterday, 12:50 PM)
--
Covert Affairs 1x03 South Bound Suarez (torrent) has just been added.
(Yesterday, 08:30 AM)
--
Rescue Me 6x05 Blackout (torrent) has just been added.
(Yesterday, 07:53 AM)
--
Creedence Clearwater Revival - Platinum (2004) (torrent) has just been added.
(Yesterday, 06:25 AM)
--
Hawthorne 2x06 Final Curtain (torrent) has just been added.
(Yesterday, 06:19 AM)
--
Unnatural History 1x06 Public School Enemies (torrent) has just been added.
(Yesterday, 04:57 AM)
--
ShoutOut! © InvisionMint
Float?

blob to info hash

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

> 

If you would like to advertise your Hosting, Services or Products on Filesoup, please contact Geeker for a quote.

 
Reply to this topicStart new topic
> blob to info hash
Jaggi
post Feb 18 2010, 09:14 PM
Post #1


Advanced Member
Group Icon

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.
Go to the top of the page
 
+
m332
post Feb 22 2010, 08:13 PM
Post #2
Advanced Member
Group Icon

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.
Go to the top of the page
 
+
Jaggi
post Apr 19 2010, 11:45 AM
Post #3


Advanced Member
Group Icon

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.
Go to the top of the page
 
+

Reply to this topicStart new topic
Tags
No Tag inserted yet

1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 






RSS Lo-Fi Version | SEO by MinervaSEO © Icelabz.net Time is now: 29th July 2010 - 04:34 PM