Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7169853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T15:05:41+00:00 2026-05-28T15:05:41+00:00

this is my string in serialized form.when i tried to unserialized (convert to array)

  • 0

this is my string in serialized form.when i tried to unserialized (convert to array) the string i was given error ,please see the following serialized string

a:6:{s:5:"width";s:3:"614";s:6:"height";s:3:"414";s:14:"hwstring_small";s:23:"height='86' width='128'";s:4:"file";s:171:"2011/02/Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok.jpg";s:5:"sizes";a:9:{s:9:"thumbnail";a:3:{s:4:"file";s:171:"Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-162x160.jpg";s:5:"width";s:3:"162";s:6:"height";s:3:"160";}s:6:"medium";a:3:{s:4:"file";s:171:"Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-258x173.jpg";s:5:"width";s:3:"258";s:6:"height";s:3:"173";}s:5:"large";a:3:{s:4:"file";s:171:"Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-530x357.jpg";s:5:"width";s:3:"530";s:6:"height";s:3:"357";}s:12:"post-special";a:3:{s:4:"file";s:171:"Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-530x380.jpg";s:5:"width";s:3:"530";s:6:"height";s:3:"380";}s:8:"post-top";a:3:{s:4:"file";s:171:"Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-110x110.jpg";s:5:"width";s:3:"110";s:6:"height";s:3:"110";}s:9:"post-tiny";a:3:{s:4:"file";s:171:"Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-108x100.jpg";s:5:"width";s:3:"108";s:6:"height";s:3:"100";}s:9:"post-item";a:3:{s:4:"file";s:171:"Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-455x327.jpg";s:5:"width";s:3:"455";s:6:"height";s:3:"327";}s:11:"post-review";a:3:{s:4:"file";s:171:"Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-162x166.jpg";s:5:"width";s:3:"162";s:6:"height";s:3:"166";}s:9:"post-poll";a:3:{s:4:"file";s:171:"Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-285x237.jpg";s:5:"width";s:3:"285";s:6:"height";s:3:"237";}}s:10:"image_meta";a:10:{s:8:"aperture";s:1:"0";s:6:"credit";s:0:"";s:6:"camera";s:0:"";s:7:"caption";s:0:"";s:17:"created_timestamp";s:1:"0";s:9:"copyright";s:0:"";s:12:"focal_length";s:1:"0";s:3:"iso";s:1:"0";s:13:"shutter_speed";s:1:"0";s:5:"title";s:0:"";}}

i am getting error as

Notice: unserialize() [function.unserialize]: Error at offset 292 of 2873 bytes

please help and tell me what is the best what to serialize the string
below is my original array

array (
  'width' => '614',
  'height' => '414',
  'hwstring_small' => 'height='86' width='128'',
  'file' => '2011/02/Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok.jpg',
  'sizes' => 
  array (
    'thumbnail' => 
    array (
      'file' => 'Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-162x160.jpg',
      'width' => '162',
      'height' => '160',
    ),
    'medium' => 
    array (
      'file' => 'Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-258x173.jpg',
      'width' => '258',
      'height' => '173',
    ),
    'large' => 
    array (
      'file' => 'Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-530x357.jpg',
      'width' => '530',
      'height' => '357',
    ),
    'post-special' => 
    array (
      'file' => 'Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-530x380.jpg',
      'width' => '530',
      'height' => '380',
    ),
    'post-top' => 
    array (
      'file' => 'Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-110x110.jpg',
      'width' => '110',
      'height' => '110',
    ),
    'post-tiny' => 
    array (
      'file' => 'Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-108x100.jpg',
      'width' => '108',
      'height' => '100',
    ),
    'post-item' => 
    array (
      'file' => 'Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-455x327.jpg',
      'width' => '455',
      'height' => '327',
    ),
    'post-review' => 
    array (
      'file' => 'Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-162x166.jpg',
      'width' => '162',
      'height' => '166',
    ),
    'post-poll' => 
    array (
      'file' => 'Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok-285x237.jpg',
      'width' => '285',
      'height' => '237',
    ),
  ),
  'image_meta' => 
  array (
    'aperture' => '0',
    'credit' => '',
    'camera' => '',
    'caption' => '',
    'created_timestamp' => '0',
    'copyright' => '',
    'focal_length' => '0',
    'iso' => '0',
    'shutter_speed' => '0',
    'title' => '',
  ),
)

thanks

//new data
i did 171 to 169
when i json_encode(‘any image’);
its giving null.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T15:05:42+00:00Added an answer on May 28, 2026 at 3:05 pm

    Did you make any manipulations with serialized string? Any charset encoding (jumping from UTF to ASCII and vice versa), html entities encoding/decoding or something else?
    This

    s:171:”2011/02/Classis-Pallela-from-Embrujo-Flamenco-at-97-Danforth-Ave.-We’ve-picked-the-classic-version-59-for-two-made-with-the-unique-and-super-absorbent-Bomba-rice.-ok.jpg”

    should be 171 characters in length between the quotes, but it is only 169 characters long. And, of course, it will throw an error in the process of unserialization.

    ps: check the length of the original string with that data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Given this string: Fri, 09 Apr 2010 14:10:50 +0000 how does one convert it
I've tried this: string newScript = textBox1.Text; HtmlElement head = browserCtrl.Document.GetElementsByTagName(head)[0]; HtmlElement scriptEl =
Given the following form: <form id=form name=form> <input name=name/> <input name=version/> <input name=template/> <textarea
I have a JSON string in this form: string jsonStr = [\A\, [\Martini\, \alovell\],[\Martin\,
I want to serialize this class: public class CarDisplay { public string Name {
Im using DataContractJsonSerializer to serealize this class: public class User { public string id
this.String = { Get : function (val) { return function() { return val; }
In this string: <0> <<1>> <2>> <3> <4> I want to match all instances
I have this string 'john smith~123 Street~Apt 4~New York~NY~12345' Using JavaScript, what is the
So from this string: name[id] I need this: id I used str.split ('[]'), but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.