well you could also "split" the files into the maximum size allowable by the particular imagehost, which wouldnt require a huge amount of extra code (in c# anyway).
its actually a very good idea, though i suspect that it will get found out and peoples accounts will be closed. TOS will be broken, etc.
let MaxFileNameSize = 0xff // 255
let mutable DefaultImgResolution = new Point(1600, 1600)
let HandShake = [| 0xffuy; 0x04uy; 0x09uy; 0x56uy |] // Unsigned byte array -> 255; 4; 9; 86
[<System.Flags>]
type AlphaFlags =
| None = 0b00000000uy // Do nothing
| EoF = 0b00000001uy // End of File -> Stop reading
// =============================================
(* Calculate the amount of bytes the can be stored in an image of the specified resolution *)
let CalcImgBytes x y mult =
match (x > 0), (y > 0) with
| true, true -> (x * y) * mult
| _ -> 0
(* Calculate the amount of images that will be needed to store the data *)
let CalcNumOfImgsRequired (dataBytes:int) (imgBytes:int) =
(float dataBytes) / (float imgBytes)
|> ceil
|> int
(* Generates the header data that contains the needed info *)
let CreateHeader (part:byte) (totalParts:byte) (fileVersion:byte) (fileName:string) =
if (fileName.Length > MaxFileNameSize) then
let msg = "File name length must be " + string MaxFileNameSize + " or smaller and bigger than 0"
let fn = "fileName"
raise(new ArgumentOutOfRangeException(fn, fileName.Length, msg))
else
Encoding.UTF8.GetBytes(fileName)
|> Array.append [| (byte fileName.Length); part; totalParts; fileVersion |]
|> Array.append HandShake
|> Array.append HandShake
|> Array.append HandShake
|> Seq.ofArray
Yeah, that is true, but I am sure if the word got around, Elio could make some cash from it, by incorporating his google ad code into the images everytime they are clicked/downloaded, which would mean he could upgrade, because he would be earning a lot of cash
Remember, the images are legal, so hopefully Google wouldn't go around checking them for illegal content![]()
No , if this gets out counter measures will be made and ip's found doing it banned
^^ well not really because then it would become easily detectable. You have a kind of #eof signature at the end of the image. The data is usually added after the #eof but of course, is easily detectable.
(@ danny, not elio).
No , if this gets out counter measures will be made and ip's found doing it banned
still a way of "hiding" the visual data would be nice, though i must admit i have no idea how you would go about doing that.
Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.
Contact us