Приведите base64binary к изображению на iPhone - PullRequest
1 голос
/ 09 марта 2011

Кто-нибудь может мне помочь, что сделать, чтобы преобразовать это (ниже) в изображение на iPhone, пожалуйста?

<base64Binary>
iVBORw0KGgoAAAANSUhEUgAAAdcAAAEjCAYAAABgh0vOAAAABGdBTUEAALGOfPtRkwAAACBjSFJNAAB6JQAAgIMAAPn/AACA6QAAdTAAAOpgAAA6mAAAF2+SX8VGAAAACXBIWXMAAAsSAAALEgHS3X78AAD/hklEQVR4Xuy9BZykZ5X9DyQjGWmXqmp3d3d372mZnu6RHnd3d/fIxN1diUOw4CyysNhvsV0gLCxOApHz/963Z/hnswECJCyBCp+Hqq6uLnmn6j3POffcc9/TlB0d+B7vf94j4D0C/5RHQNJ7vMt7DLyfgbf/M/Cexoyoi/4pzyreN+09At4j4AVW7+bC+xl4hz4D3tOL9wh4j8A/8RHwMpa3n7F4j6n3mNpnwPuf9wh4j8A/8RHwAoEXCLyfgXfmM/BPfFrxvnXvEfAeAe+J9Z05sXqPq/e4es8u3iPgPQL/xEfACwJeEPB+Bt6Zz8A/8WnF+9a9R8B7BLwn1nfmxOo9rt7j6j27eI+A9wj8Ex8BLwh4QcD7GXhnPgP/xKcV71v3HgHvEfCeWN+ZE6v3uHqPq/fs4j0C3iPwT3wEvCDgBQHvZ+Cd+Qz8E59WvG/dewS8R8B7Yn1nTqze4+o9rt6zi/cIeI/AP/ER8IKAFwS8n4F35jPwT3xa8b517xHwHgHvifWdObF6j6v3uHrPLt4j4D0C/8RHwAsCXhDwfgbemc/AP/FpxfvWvUfAewS8J9Z35sTqPa7e4+o9u3iPgPcI/HMfgffy9v+a9c999Lzv/p/uCLzVjdM/3YHxvmHvEfgnPQJvBUDfx7F5q+utPJ7dx/uf9wj8Qx0BL7j+Q/1zet+M9wj8RUfgDwHgmwGozXW+KCuv/GK7tNXQ0DFu+szNk1dsPDapa/qaSQOLNky6/OaHfKtal024cJ/zl2/2eH8MfP+iN/N3+kfeTcbf6T/MO/WyvOD6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3sfYagyAn4CDOSGxjM1IEW1E1FNTy/h9BeALsKZXsiko45iUcKxKWWXOSs8sdZhrNqzVWSYTs7LYRGSYPAwDzQVQC0tbkMjbeH/tKmEVV3aqtKZbxYBrcVUH1+2yRwWAa25JO329AGxBCxsSQDarhedHtsYAloB0nJBYybEEZKkJ2+uNT+B1pdYoBhacAvvNKx9EdehBtqedCVaekIOJjMfKr+hGtieso2tELcMLNLhgjUZX79TKDfu0fedR7dqFs3jR/tc621bcVlLYGnl+4+iVit+ms5MXXN+mA+l9mHfNEfhToPrGOqrDUieMu3hyjMedlhodtqkyxf1oa2H6TxOpiyIFyxcwDXDXKSRmVCGRgxhQ8ulTpI0iOEE+wbE4PQFap68xARCGfVJnHZOFcZvaikMGjgM0HcBC0gXYIqOSATdANQzGyqU5eePpd0xJw7yUmshlMkCZgsyYQl0VSZgWm2hacqK5XwysdWyZ+zceEw4MNi6T5ynk+fJZ6cjRY6anZOTiJCTimERaUaIz2ATggo1I5dIANgnQToNB8xph1faawiKTee22DHyTqAfyWrm/JzwF1y23R6fxu3S5I9KpE2Zy/2weIw92mA9LBMCoRcbAyKKobyYDdNkFXcohlam8a6U65u/S8r1X66ZHPq0f/eo3jtxp//0MYH3q+Z/o4NnntWHnrdqw7zptPn6X7n7mC/reL1/Ud3/1ij725Z/p3A2f08rNt6pv3h41dK+hR3YhADOi7GKMTLnI0Fn016bVAvIwwQQANbYQxzXmJIxJMfycmFYEW4W9InunppFMRehFcnoRteoSQK8CBgsbzYSxwkoNYDOQitO4LYu6bEFJIwy5lVYgmGk1oAaQGoCWVHc4wFoMay3m9uLqHkC1V0Wswqou5HTAtayL1UHoRpsDsrlF7TDeDuUUEKrB687OxZltbDvZGG0Nr4mF0zolrZXX3OS4rhNpa4qOq+XY17DJop+X5cEB7Y7IxdmMoSoqR+EpvBc=
</base64Binary>

NSData *d = [self decodeBase64WithString:@"...binary string here..."];
UIImage *img = [[UIImage alloc]initWithData:d];
imgView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, 320, 480)];
    [imgView setBackgroundColor:[UIColor redColor]];
    [self.view addSubview:imgView];
    [imgView setImage:img];

Но изображения нет, я не знаю, что я делаю не так: (

...